package com.tueye.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 注意@ManyToMany/@JoinTable(多对多关系),@OrderBy/LinkedHashSet(集合排序),@Transient(非持久化属性)的应用.
 * @author hanxiaowei
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "tueye_adinfo_info")
public class Adinfo extends BaseEntity {
	
	private String adinfo_title;
	private int adinfo_title_length;//标题字节长度
	private String adinfo_description;
	private int adinfo_description_length;//描述显示长度
	private Integer adinfo_level;//内容级别
	private String adinfo_address;//内容连接地址
	private String adinfo_point_num; //广告点击次数
	//if the value is 1 is local upload
	//if the value is 2 is internate
	private String picture_site_type;//图片位置类型
	private String adpicture_site;          //广告图片位置
	
	private Adsite adsite;
	
	@ManyToOne
	public Adsite getAdsite() {
		return adsite;
	}
	public void setAdsite(Adsite adsite) {
		this.adsite = adsite;
	}
	public String getAdinfo_title() {
		return adinfo_title;
	}
	public void setAdinfo_title(String adinfo_title) {
		this.adinfo_title = adinfo_title;
	}
	public String getAdinfo_description() {
		return adinfo_description;
	}
	public void setAdinfo_description(String adinfo_description) {
		this.adinfo_description = adinfo_description;
	}
	public Integer getAdinfo_level() {
		return adinfo_level;
	}
	public void setAdinfo_level(Integer adinfo_level) {
		this.adinfo_level = adinfo_level;
	}
	public String getAdinfo_address() {
		return adinfo_address;
	}
	public void setAdinfo_address(String adinfo_address) {
		this.adinfo_address = adinfo_address;
	}
	public String getAdinfo_point_num() {
		return adinfo_point_num;
	}
	public void setAdinfo_point_num(String adinfo_point_num) {
		this.adinfo_point_num = adinfo_point_num;
	}
	public String getPicture_site_type() {
		return picture_site_type;
	}
	public void setPicture_site_type(String picture_site_type) {
		this.picture_site_type = picture_site_type;
	}
	public String getAdpicture_site() {
		return adpicture_site;
	}
	public void setAdpicture_site(String adpicture_site) {
		this.adpicture_site = adpicture_site;
	}
	public int getAdinfo_title_length() {
		return adinfo_title_length;
	}
	public void setAdinfo_title_length(int adinfo_title_length) {
		this.adinfo_title_length = adinfo_title_length;
	}
	public int getAdinfo_description_length() {
		return adinfo_description_length;
	}
	public void setAdinfo_description_length(int adinfo_description_length) {
		this.adinfo_description_length = adinfo_description_length;
	}
	
}